import 'package:flutter/material.dart';
import 'package:flutter_app_demo/base/widget/common_app_bar.dart';
import 'package:flutter_app_demo/pages/home/tab_two_page_view_model.dart';
import 'package:go_router/go_router.dart';
import 'package:mvvm_plus/mvvm_plus.dart';

// Created by 王亮 on 2025/2/10.
class TabTwoPage extends ViewWidget<TabTwoPageViewModel> {
  TabTwoPage({super.key}) : super(builder: () => TabTwoPageViewModel());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: CommonAppBar(
        showLeading: false,
        title: '资讯',
      ),
      body: Container(
        child: Column(
          children: [
            ElevatedButton(
                onPressed: () {
                  context.push("/web?url=test");
                },
                child: Text('网页测试')),
          ],
        ),
      ),
    );
  }
}
